package com.example.cassandra_demo.model;

import org.springframework.data.cassandra.core.mapping.PrimaryKey;
import org.springframework.data.cassandra.core.mapping.Table;

import java.io.Serializable;

/**
 * @Author: Crystal
 * @Date: 2019/1/22 11:42
 **/
@Table("cyy_test")
public class Cyy implements Serializable {

    private static final long serialVersionUID = 1L;

    @PrimaryKey
    private int id;
    private String code;
    private String name;
    private String momo;

    public Cyy() {
    }

    public Cyy(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMomo() {
        return momo;
    }

    public void setMomo(String momo) {
        this.momo = momo;
    }
}
